package cn.edu.scau.cmi.huangxiyan.simpleFactoryMethod;

import cn.edu.scau.cmi.huangxiyan.simpleFactoryMethod.meat.*;

public class MeatFactory {

	public static Meat getMeat(String meatType) {
		Meat meat = null;
		switch (meatType) {
		case "pork":
			meat = new Pork();
			break;
		case "beef":
			meat = new Beef();
			break;
		case "chicken":
			meat = new Chicken();
			break;
		}
		return meat;
	}
}
